<?php 
    try{
        header('Content-Type: text/html; charset=utf-8');
        //$url = "http://172.16.195.26/ArcGIS/rest/services/mwajavascript/MapServer/76/query?text=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&where=1%3D1&returnGeometry=false&outSR=&outFields=NAME%2CDISTRICT_ID+&f=pjson";
        $url = "http://172.16.195.26/arcgis/rest/services/wmsservice/MapServer/187/query?where=1%3D1&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=NAME%2C+DISTRICT_I&returnGeometry=false&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&f=pjson";
        $json = file_get_contents($url);
        echo $json;
    } catch (Exception $ex) {
        echo Exception." = " . $ex;
    }  
?>
